package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @ClassName: LocalSceneGroupRelation
 * @Description: 场景与群组之间的关系对象
 * @author wjming
 * @Date 2021-07-08 13:25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_local_scene_group_relation`")
public class LocalSceneGroupRelation extends BaseDoClass implements Serializable {

    @TableField(value = "`scene_id`")
    private String sceneId;

    @TableField(value = "`device_id`")
    private String deviceId;

    @TableField(value = "`state_des`")
    private String stateDes;

    /**
     * 群组延时时间分钟
     */
    @TableField(value = "`deley_time_minute`")
    private String deleyTimeMinute;

    /**
     * 群组延时时间秒
     */
    @TableField(value = "`deley_time_second`")
    private String deleyTimeSecond;

    @TableField(value = "`cmd`")
    private String cmd;

    @TableField(value = "`purpose`")
    private String purpose;

    @TableField(value = "`control_param`")
    private String controlParam;

    @TableField(value = "`img_name`")
    private String imgName;

    @TableField(value = "`sort`")
    private Integer sort;

    @TableField(value = "`state`")
    private Integer state;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_DEVICE_ID = "device_id";

    public static final String COL_STATE_DES = "state_des";

    public static final String COL_DELEY_TIME_MINUTE = "deley_time_minute";

    public static final String COL_DELEY_TIME_SECOND = "deley_time_second";

    public static final String COL_CMD = "cmd";

    public static final String COL_PURPOSE = "purpose";

    public static final String COL_CONTROL_PARAM = "control_param";

    public static final String COL_IMG_NAME = "img_name";

    public static final String COL_SORT = "sort";

    public static final String COL_STATE = "state";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}